<template>
  <div class="me">
    &nbsp;
    <div class="user">
      <div class="user-icon">
        <img src="../assets/head.jpg" alt="" />
      </div>
      <img
        src="@/assets/img/xiugai.svg"
        style="width: 30px; position: absolute; left: 115px; top: 5px"
      />

      <p
        style="
          position: absolute;
          right: 25px;
          bottom: 23px;
          font-size: 18px;
          color: #3ead3e;
        "
      >
        阿妮亚
      </p>
    </div>

    <ul>
      <router-link
        tag="li"
        :to="'/collection'"
      >
        <img src="@/assets/img/shoucang.svg" />
        我的收藏
      </router-link>

      <li><img src="@/assets/img/watch-history.svg" /> 浏览历史</li>
      <li><img src="@/assets/img/story.svg" /> 去文故事</li>
      <li><img src="@/assets/img/yinsi.svg" /> 隐私条款</li>
      <li><img src="@/assets/img/xieyi.svg" /> 用户协议</li>
      <li><img src="@/assets/img/banben.svg" /> 版本号1.3.0</li>
    </ul>

      <div class="sign-out" @click="signOut">
        <p>退出登录</p>
      </div>
    <div class="dianzi">

    </div>
  </div>
</template>

<script>
export default {
  methods: {
    signOut() {
      this.$router.push({ name: "login" });
    }
  },

};
</script>

<style lang="scss" scoped>
.me {
  min-height: 100vh;
  background-color: rgba(242, 238, 238, 0.742);
}

.user {
  position: relative;
  width: 90%;
  height: 100px;
  background-color: rgb(224, 217, 217);
  border-radius: 15px;
  margin: 80px auto;
}

.user-icon {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  overflow: hidden;
  position: absolute;
  top: -40px;
  left: 25px;
  img {
    width: 100%;
    height: 100%;
  }
}

ul {
  li {
    width: 95%;
    height: 30px;
    border-bottom: 0.5px solid rgb(223, 216, 216, 0.6);
    margin: 30px 10px;
    color: rgba(62, 173, 62, 0.731);

    img {
      width: 20px;
      height: 20px;
    }
  }
}

.sign-out {
  color: rgb(181, 34, 34);
  width: 30vw;
  height: 40px;
  background-color: rgb(219, 219, 219);
  text-align: center;
  line-height: 40px;
  border-radius: 15px;
  margin: 0 auto;
}

.dianzi {
  height: 50px;
}
</style>